\hypertarget{class_u_n_semaphore}{\section{U\+N\+Semaphore类 参考}
\label{class_u_n_semaphore}\index{U\+N\+Semaphore@{U\+N\+Semaphore}}
}


无名信号量,一般用于线程间通信  




{\ttfamily \#include $<$Semaphore.\+h$>$}

类 U\+N\+Semaphore 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_u_n_semaphore}
\end{center}
\end{figure}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
sint32 \hyperlink{class_u_n_semaphore_af3c1b5c272891cf4fc8512789378750b}{open} (sint32 value=1)
\begin{DoxyCompactList}\small\item\em 打开无名信号量 \end{DoxyCompactList}\item 
sint32 \hyperlink{class_u_n_semaphore_a2ccd307a4c1006f7b5d2fdca006eeec7}{close} ()
\begin{DoxyCompactList}\small\item\em 关闭无名信号量 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{额外继承的成员函数}


\subsection{详细描述}
无名信号量,一般用于线程间通信 

\subsection{成员函数说明}
\hypertarget{class_u_n_semaphore_a2ccd307a4c1006f7b5d2fdca006eeec7}{\index{U\+N\+Semaphore@{U\+N\+Semaphore}!close@{close}}
\index{close@{close}!U\+N\+Semaphore@{U\+N\+Semaphore}}
\subsubsection[{close}]{\setlength{\rightskip}{0pt plus 5cm}sint32 U\+N\+Semaphore\+::close (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_u_n_semaphore_a2ccd307a4c1006f7b5d2fdca006eeec7}


关闭无名信号量 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回\+S\+T\+A\+T\+U\+S\+\_\+\+O\+K,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}


实现了 \hyperlink{class_semaphore}{Semaphore}.

\hypertarget{class_u_n_semaphore_af3c1b5c272891cf4fc8512789378750b}{\index{U\+N\+Semaphore@{U\+N\+Semaphore}!open@{open}}
\index{open@{open}!U\+N\+Semaphore@{U\+N\+Semaphore}}
\subsubsection[{open}]{\setlength{\rightskip}{0pt plus 5cm}sint32 U\+N\+Semaphore\+::open (
\begin{DoxyParamCaption}
\item[{sint32}]{value = {\ttfamily 1}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_u_n_semaphore_af3c1b5c272891cf4fc8512789378750b}


打开无名信号量 


\begin{DoxyParams}{参数}
{\em void} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回\+S\+T\+A\+T\+U\+S\+\_\+\+O\+K,失败返回\+S\+T\+A\+T\+U\+S\+\_\+\+E\+R\+R\+O\+R 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}


实现了 \hyperlink{class_semaphore}{Semaphore}.



该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_semaphore_8h}{Semaphore.\+h}\item 
libemb/src/Semaphore.\+cpp\end{DoxyCompactItemize}
